<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>标题</title>
</head>
<body>
<div ng-app="myApp">
    <div ng-controller="firstController">
        <!--父元素的books-->
        {{books}}
        <!--子元素的books-->
        <div book-list books="books" parent-books="books" parent-title = "{{ title }}"></div>
        <!--parent-title后面接的属性是字符串-->
    </div>
</div>
<script type="text/javascript" src="../../vendor/angular/angularjs.js"></script>
<script type="text/javascript" src="app/index.js"></script>
</body>
</html>